<template>
  <i
    :class="{
      'el-icon-caret-bottom': isOpen,
      'el-icon-caret-top': !isOpen,
    }"
    @click="$emit('callback', !isOpen)"
  />
</template>

<script>
/**
 * icon-caret 展开/关闭 按钮
 */
export default {
  model: {
    prop: 'isOpen',
    event: 'callback'
  },
  props: {
    isOpen: {
      type: Boolean,
      default: false
    }
  }
};
</script>
